<?php
class admin_tpl extends SClass {

    public function process() {
        try {
            $user = $this->getUser();
            $this->setValue('user', $user->makeInfoArray());
            $this->setValue('avatar', $this->getUser()->makeImageGravatar());

            // передаем все ACL user'a
            $acl = Triumph::Get()->getUserService()->getUserACLArray(
                $this->getUser()
            );
            $this->setValue('acl', $acl);
        } catch (Exception $e) {

        }

//        $this->setValue('urlLiveInternet', "http://liveinternet.ru/stat/".Engine::Get()->getProjectHost().'/');
//        $this->setValue('integration_ga', BC::Get()->getSettingsService()->getSettingValue('integration-googleanalytics'));
//        $this->setValue('integration_li', BC::Get()->getSettingsService()->getSettingValue('integration-liveinternet'));
        $this->setValue('year', date('Y'));

        PackageLoader::Get()->import('JSChosen');

        $this->setValue('title', Engine::GetHTMLHead()->getTitle());
        $this->setValue('engine_includes', Engine::GetHTMLHead()->render());
    }

}